#ifndef ALLEGRO_INITIALISE_H
#define ALLEGRO_INITIALISE_H

#include <iostream>
#include <string>
#include <allegro5\allegro.h>
#include <allegro5\allegro_native_dialog.h>
#include <allegro5/allegro_primitives.h>


using namespace std;


const int screen_width = 700;
const int screen_height = 520;
const int game_box_size = 450;
//the speed at which the game's timer operates - initialize to 60 FPS
const int FPS = 60; 

enum SETUP_STATUS 
{	SETUP_SUCCESFULL, 
	ALLEGRO_INITIALIZATION_ERROR, 
	DISPLAY_SETUP_ERROR, 
	KEYBOARD_SETUP_ERROR, 
	PRIMITIVES_ADDON_SETUP_ERROR,
	TIMER_SETUP_ERROR,
	EVENT_QUEUE_SETUP_ERROR
};

struct Allegro_resources
{
	ALLEGRO_DISPLAY *_display;
	ALLEGRO_EVENT_QUEUE *_event_queue;
	ALLEGRO_TIMER *_timer;
};

SETUP_STATUS init_alleg(Allegro_resources &resources);

string create_error_message( SETUP_STATUS status);
void display_setup_error_message(string &message);



#endif